package com.ysd.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ysd.dao.impl.footerDao;
import com.ysd.entity.footer;

/**
 * Servlet implementation class contactServlet
 */
@WebServlet("/contactServlet")
public class contactServlet extends HttpServlet {
	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		footerDao footdao=new footerDao();
		 footer l=footdao.getAllfooterHou();
		req.setAttribute("contact", l);
		req.getRequestDispatcher("/contact.jsp").forward(req, resp);
	}

}
